Don't send non-alphanumeric chars to geriatric Garmins. Fixes GPS Streetpilot III.
authorrobertl <robertl>
Mon, 3 Mar 2008 18:07:37 +0000 (18:07 +0000)
committerrobertl <robertl>
Mon, 3 Mar 2008 18:07:37 +0000 (18:07 +0000)
jeeps/gpsapp.c

index 6333fb5552d4b903c454eff7c301fe8e99e01cdd..651ed61e3a22686c039cca5e1085a4a04ae4504c 100644 (file)
@@ -124,6 +124,7 @@ void copy_char_array(UC **dst, char* src, int count, copycase mustupper)
        int ocount =  count;
        do {
                UC sc = *src++;
+               if (!isalnum(sc)) continue;
                if (sc == 0) {
                        while (count--) 
                                *d++ = ' ';